#!/usr/bin/env python

import wx
import sys

class Frame(wx.Frame):	
	def __init__(self, parent, id, title):
		wx.Frame.__init__(self, parent, id, title)

class FixedFrame(wx.Frame):
	def __init__(self):
		wx.Frame.__init__(self, None, -1, "Fixed Window", pos=(600,600), size=(400,400),\
		style=wx.DEFAULT_FRAME_STYLE ^ (wx.RESIZE_BORDER | wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX))
		
class ToolFrame(wx.Frame):
	def __init__(self):
		wx.Frame.__init__(self, None, -1, "Tool Window", \
		style=wx.FRAME_TOOL_WINDOW | wx.DEFAULT_FRAME_STYLE)
		
class HelpFrame(wx.Frame):	
	def __init__(self, parent=None, id=-1, title="Help"):
		wx.Frame.__init__(self, parent, id, title, style=wx.FRAME_EX_CONTEXTHELP)
		
class App(wx.App):

	def __init__(self, redirect=True, filename=None):
		wx.App.__init__(self, redirect, filename)
		
	def OnInit(self):
		self.frame = Frame(parent=None, id=-1, title='Startup')
		self.frame.Show()
		self.SetTopWindow(self.frame)
		return True

def main():
	app = App(redirect=True)
	f = Frame(parent=app.frame, id = -1, title='Startup-1')
	f.Show()
	
	f1 = FixedFrame()
	f1.Show()
	
	f2 = ToolFrame()
	f2.Show()
	
#	f3 = HelpFrame()
#	f3.Show()
	
	app.MainLoop()
	
if __name__ == '__main__':
	main()
	
